package com.jyxd.web.service.assessment.basic;

import com.jyxd.web.dao.basic.ComNumberDao;
import com.jyxd.web.data.basic.ComNumber;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class ComNumberService {

    @Autowired
    private ComNumberDao comNumberDao;

    public List<ComNumber> queryList(Map<String,Object> map){
        return comNumberDao.queryList(map);
    }

    public int queryNum(Map<String,Object> map){return comNumberDao.queryNum(map);}

    public boolean insert(ComNumber comNumber){
        return comNumberDao.insert(comNumber);
    }

    public boolean update(ComNumber comNumber){
        return comNumberDao.update(comNumber);
    }

    public ComNumber queryData(String id){
        return comNumberDao.queryData(id);
    }
}
